/*
 * @Date: 2025-10-02 13:59:36
 * @LastEditors: 贾二小 erxiao.jia@outlook.com
 * @LastEditTime: 2025-10-02 15:17:02
 * @FilePath: /admin-vue/src/composables/system/useUpload.ts
 */
import { http } from '@/plugins/axios'

export default () => {
   
  const avatar = async (model: FormData) => {
	const data = await http.request<UploadModel, ResponseResult<UploadModel>>({
	  url: `upload/avatar`,
	  method: 'POST',
	  data: model,
	})
	return data
  }

  return { avatar }
}
